<%@ taglib uri="/WEB-INF/myfaces_html.tld" 	prefix="h" %>
<%@ taglib uri="/WEB-INF/myfaces_core.tld" 	prefix="f" %>
<%@ taglib uri="/WEB-INF/tomahawk.tld"     	prefix="t" %>

<%@ page import="javax.faces.context.FacesContext" %>
<%
    java.util.ResourceBundle bundle = java.util.ResourceBundle.getBundle(FacesContext.getCurrentInstance().getApplication().getMessageBundle(), FacesContext.getCurrentInstance().getApplication().getDefaultLocale());
    String versioneSw=bundle.getString("managerwork_titolo");
%>    

    <f:view>        
        
        <jsp:include page="/intestazione.jsp">
            <jsp:param name="titolo" value="Login" />
        </jsp:include>
        <br/>
        <script language="javascript" src="./script/ripristinoSessione.js"></script>
        <h:form id="form" > 
            <table valign="middle">
                <table align="center" cellpadding="0" cellspacing="5" class="login" height="360" width="460" background="image/sfondo00016.gif" >
                    <tbody>
                        <tr>
                            <td colspan="8" class="login" align="right"> :: Powered by SwIdea ::</td>
                        </tr>
                        <tr><td width="10%"></td><td width="30%"><td width="30%"></td><td width="30%"><td width="20%"><td width="10%"></td></tr>
                        <tr>
                            <td>&nbsp</td>
                            <td colspan="8" align="right"><a href="mailto:beccuccio@katamail.com;emmly@katamail.com"><img style="border: none;" title="Contatta l'amministatore di sistema" border="0" src="image/@.gif" alt="Contattaci"></a></td>
                        </tr>                        
                        <tr>
                            <td >&nbsp;</td>
                            <td colspan="5"><br/></td>
                        </tr>               
                        <tr>                            
                            <td colspan="6" align="right" valign="top" class="login"><strong><h:outputText  value="Nome utente" /></strong></td>
                            <td align="right"><t:inputText forceId="true" id="utente" value="#{login.nomeUtente}"/>
                            <td>&nbsp</td>
                        </tr>
                        <tr>
                            <td colspan="4"><br/></td>
                            <td colspan="2" align="right" valign="top" class="login"><strong><h:outputText  value="Password"/></strong></td>
                            <td align="right"><t:inputSecret forceId="true" id="passwd" value="#{login.passwd}"/> </td>
                            <td>&nbsp</td>
                        </tr>
                        <tr><td></td></tr><tr><td></td></tr><tr><td></td></tr>
                        <tr>
                            <td colspan="10">&nbsp</td>
                            <td align="center" colspan="2"><h:commandButton value="Login" action="#{azioneLogin.esegui}" /></td>
                            <td>&nbsp</td>
                        </tr>
                        
                        <tr>
                            <td>
                                <img style="padding:10px; margin-left: 15px; margin-top: 15px;" alt="Logo" src="image/logoswidea.png" width="120px" heigth="100px"/>
                            </td>
                            <td colspan="8" align="right" class="login"> <a class="login" title="Apre la home page del sito web" href="http://www.swidea.it">
                               <%=versioneSw%>
                            </td>
                        </tr>
                    </tbody>
                </table>
                <br />
                <table align="center">
                    <tr>
                        <td colspan="6" align="center" class="messaggiErroreBig"><strong><h:messages /></strong>&nbsp;</td>
                    </tr>
                </table>
                <br />
                <table align="center">
                    <tbody>
                        <tr>
                            <td align="right"><img alt="Validation W3C" src="image/valid-html401-blue.png" /></td>
                            <td align="center"><img alt="Validation CSS" src="image/valid-css-blue.png" /></td>
                            <td align="left"><img alt="WCAG Level A" src="image/valid-xml10-blue.png" /></td>
                            <td align="left"><img alt="MyFaces Powered" src="image/myfaces_powered_over.gif" /></td>
                        </tr>
                    </tbody>
                </table>
            </table>
            <script type="text/javascript">
                document.getElementById('utente').focus();
            </script>
        </h:form>
        <jsp:include page="/piePagina.jsp"/>
    </f:view>
